﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class Clients_Control_Jobs : System.Web.UI.UserControl
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!this.IsPostBack)
        {
            LoadAbout();
            String strPage = "";
            try
            {
                strPage = Request.Params["Pro"].ToString().Trim();
            }
            catch
            {

            }
            lblContentTitle.Text = Constant.ContentTitle(strPage);
        }
    }
    private void LoadAbout()
    {

        int id = 2;
        try
        {
            id = int.Parse(Request.Params["id"].ToString());
        }
        catch
        {
        }
        using (DamiWebDataContext db = new DamiWebDataContext())
        {
            var query = from p in db.tbl_News_Langs
                        where p.idLang == 1 && p.idNew == id
                        select p;

            String strBody = "";
            foreach (var c in query)
            {
                strBody = c.bodyNew.ToString();
                break;
            }
            lblHoTro.Text = strBody;
        }
    }
}